<?php echo $this->fetch('header.html'); ?>
<style type="text/css">
.order_table {font-size: 12px; margin-top:8px}
.order_table td{padding:0; margin:0; padding:6px 0;}
.order_table .left_style{text-align:left; padding-left:10px;width:220px;}
.order_table b{font-size: 12px; font-weight:normal; color:#00F;}
.order_table td a{color:#F00;text-decoration:none}.order_table td a:hover{color:#00F;text-decoration:underline}
.order_class{padding:5px 10px;}
.order_class em{padding:0 5px;color:#FFF;}
.order_class .ck{color:#FFFC00; text-decoration:none}
.order_class a{color:#FFF; background:#028FD7; display:line-block;padding:3px 8px 2px 8px;text-decoration:none}.order_class a:hover{color:#FFFC00; text-decoration:underline}
.bz_style{float:right;background:url(templates/style/images/op_memo_1.png); height:12px; width:12px;}
</style>
<div id="rightTop">
  <ul class="subnav">
    <?php $_from = $this->_var['_dh_banner']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'subitem');if (count($_from)):
    foreach ($_from AS $this->_var['subitem']):
?>
        <?php if ($this->_var['subitem']['name'] == $this->_var['_curitem']): ?>
            <li><a href="<?php echo $this->_var['subitem']['url']; ?>" class="btn0"><?php echo $this->_var['subitem']['text']; ?></a>
        <?php else: ?>
            <li><a href="<?php echo $this->_var['subitem']['url']; ?>" class="btn1"><?php echo $this->_var['subitem']['text']; ?></a>
        <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  
  </ul>
</div>

<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
         <input type="hidden" name="app" value="caiwu" />
<select class="querySelect" name="rz_is_ok" onchange="location='index.php?app=caiwu&rz_is_ok='+this.value;">
                    <option value="">实名认证</option>
                    <option value="1" <?php if ($_GET['rz_is_ok'] == 1): ?>selected<?php endif; ?>>等待审核</option>
                    <option value="2" <?php if ($_GET['rz_is_ok'] == 2): ?>selected<?php endif; ?>>拒绝通过</option>
                    <option value="3" <?php if ($_GET['rz_is_ok'] == 3): ?>selected<?php endif; ?>>审核通过</option>
          </select>
          <select name="field_name"><?php echo $this->html_options(array('options'=>$this->_var['query_fields'],'selected'=>$_GET['field_name'])); ?>
          </select><input type="text" name="field_value" value="<?php echo htmlspecialchars($_GET['field_value']); ?>" />
           <select name="pagenum">
            <option value="20" <?php if ($this->_var['pagenum'] == 20): ?>selected<?php endif; ?>>每页20条</option>
            <option value="50" <?php if ($this->_var['pagenum'] == 50): ?>selected<?php endif; ?>>每页50条</option>
            <option value="100" <?php if ($this->_var['pagenum'] == 100): ?>selected<?php endif; ?>>每页100条</option>
            <option value="150" <?php if ($this->_var['pagenum'] == 150): ?>selected<?php endif; ?>>每页150条</option>
            <option value="200" <?php if ($this->_var['pagenum'] == 200): ?>selected<?php endif; ?>>每页200条</option>
          </select>
          <input type="submit" class="formbtn" value="查询" />
      </div>
      <?php if ($this->_var['filtered']): ?>
      <a class="left formbtn1" href="index.php?app=user">撤销检索</a>
      <?php endif; ?>
    </form>
  </div>
  <div class="fontr"><?php echo $this->fetch('page.top.html'); ?></div>
</div>

<div class="tdare">
<table width="100%" cellspacing="0" class="dataTable">
    <?php if ($this->_var['users']): ?>
    <tr class="tatr1">
      <td>会员名 | 真实姓名</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td><span ectype="order_by" fieldname="money">帐户金额</span></td>
      <td><span ectype="order_by" fieldname="money_dj">冻结金额</span></td>
      <td class="table-center"><span ectype="order_by" fieldname="rz_is_ok">实名认证</span></td>
      <td class="table-center">成交订单-买家</td>
      <td><span class="table-center">成交订单</span>-卖家</td>
      <td>店铺名</td>
      <td>手机号码</td>
      <td>电子邮箱</td>
      <td width="130">快捷操作</td>
    </tr>
    <?php endif; ?>
    <?php $_from = $this->_var['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'user');if (count($_from)):
    foreach ($_from AS $this->_var['user']):
?>
    <tr class="tatr2" ondblclick="window.location.href='index.php?app=caiwu&amp;act=userinfo&amp;user_id=<?php echo $this->_var['user']['user_id']; ?>'">
      <td><?php echo htmlspecialchars($this->_var['user']['user_name']); ?> <?php if ($this->_var['user']['real_name']): ?>(<?php echo htmlspecialchars($this->_var['user']['real_name']); ?>)<?php endif; ?></td>
      <td></td>
      <td></td>
      <td><strong <?php if ($this->_var['user']['money'] > 0): ?>class=bhong<?php endif; ?>><?php echo $this->_var['user']['money']; ?></strong></td>
      <td><strong <?php if ($this->_var['user']['money_dj'] > 0): ?>class=bhong<?php endif; ?>><?php echo $this->_var['user']['money_dj']; ?></strong></td>
      <td class="table-center">
     <?php if ($this->_var['user']['rz_is_ok'] == 1): ?><font color="#FF0000">等待审核</font>
    <?php elseif ($this->_var['user']['rz_is_ok'] == 2): ?>拒绝通过
    <?php elseif ($this->_var['user']['rz_is_ok'] == 3): ?><font color="#009900">审核通过</font>
    <?php endif; ?></td>
      <td class="table-center"><?php if ($this->_var['user']['beyer_order_count'] > 0): ?><a href='index.php?app=order&status=40&field=buyer_name&search_name=<?php echo urlencode($this->_var['user']['user_name']); ?>' target="_blank" title="点击查看成交订单"><strong class="bhong"><?php echo $this->_var['user']['beyer_order_count']; ?></strong></a><?php else: ?>0<?php endif; ?></td>
      <td><?php if ($this->_var['user']['seller_order_count'] > 0): ?><a href="index.php?app=order&status=40&field=seller_id&search_name=<?php echo $this->_var['user']['store_id']; ?>" target="_blank" title="点击查看成交订单"><strong class="bhong"><?php echo $this->_var['user']['seller_order_count']; ?></strong></a><?php else: ?>0<?php endif; ?></td>
      <td><?php if ($this->_var['user']['store_id']): ?><a target="_blank" href="<?php echo $this->_var['site_url']; ?>/index.php?app=store&amp;id=<?php echo $this->_var['user']['store_id']; ?>" ><?php echo htmlspecialchars($this->_var['user']['store_name']); ?></a><?php endif; ?></td>
      <td><?php if ($this->_var['user']['phone_tel']): ?><?php echo htmlspecialchars($this->_var['user']['phone_tel']); ?><?php endif; ?></td>
      <td><a href="mailto:<?php echo htmlspecialchars($this->_var['user']['email']); ?>"><?php echo htmlspecialchars($this->_var['user']['email']); ?></a></td>
      <td width="130"><a href="index.php?app=caiwu&act=money_list&field_name=user_id&field_value=<?php echo $this->_var['user']['user_id']; ?>">帐务</a> <a href="index.php?app=caiwu&act=money_txlog&field_name=user_name&field_value=<?php echo $this->_var['user']['user_name']; ?>">提现</a> <a href="index.php?app=caiwu&amp;act=chongzhi&amp;user_id=<?php echo $this->_var['user']['user_id']; ?>" title="充值与扣除余额">充值</a> <a href="index.php?app=caiwu&amp;act=userinfo&amp;user_id=<?php echo $this->_var['user']['user_id']; ?>">编辑</a></td>
    </tr>
    <?php endforeach; else: ?>
    <tr class="no_data">
      <td colspan="13">没有符合条件的记录</td>
    </tr>
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>
   <div id="dataFuncs">
    <div class="pageLinks"><?php echo $this->fetch('page.bottom.html'); ?></div>
</div>
    <div class="clear"></div>
</div>
<?php echo $this->fetch('footer.html'); ?>